﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Practices.EnterpriseLibrary.Logging;
using System.Web.Routing;

namespace KL.Store.Web.Controllers
{
    public class RouteController : KL.Store.Core.Web.BaseController
    {
        //
        // GET: /Route/

        public ActionResult Index(string id)
        {
            Logger.Write(id, "Trace");
            var routeData = new RouteData();
            routeData.Values.Add("controller", "Categories");
            routeData.Values.Add("category", "Index");
            routeData.Values.Add("id", "1");

            //CategoriesController cc = new CategoriesController();
            return RedirectToRoute("Categories",routeData);
            //return View("~/Categories/Index");
        }

    }
}
